package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_role_give
 * @author 
 */
public class SesUserRoleGive implements Serializable {
    /**
     * ID,主键PK
     */
    private Long giveid;

    /**
     * 角色权限管理表ID
     */
    private Long roleid;

    /**
     * 具体权限
     */
    private String giveuri;

    /**
     * 指向父权限ID(就是表的主键,为0则表示没有父权限,默认为0)
     */
    private Long giveparentid;

    private static final long serialVersionUID = 1L;

    public Long getGiveid() {
        return giveid;
    }

    public void setGiveid(Long giveid) {
        this.giveid = giveid;
    }

    public Long getRoleid() {
        return roleid;
    }

    public void setRoleid(Long roleid) {
        this.roleid = roleid;
    }

    public String getGiveuri() {
        return giveuri;
    }

    public void setGiveuri(String giveuri) {
        this.giveuri = giveuri;
    }

    public Long getGiveparentid() {
        return giveparentid;
    }

    public void setGiveparentid(Long giveparentid) {
        this.giveparentid = giveparentid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserRoleGive other = (SesUserRoleGive) that;
        return (this.getGiveid() == null ? other.getGiveid() == null : this.getGiveid().equals(other.getGiveid()))
            && (this.getRoleid() == null ? other.getRoleid() == null : this.getRoleid().equals(other.getRoleid()))
            && (this.getGiveuri() == null ? other.getGiveuri() == null : this.getGiveuri().equals(other.getGiveuri()))
            && (this.getGiveparentid() == null ? other.getGiveparentid() == null : this.getGiveparentid().equals(other.getGiveparentid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGiveid() == null) ? 0 : getGiveid().hashCode());
        result = prime * result + ((getRoleid() == null) ? 0 : getRoleid().hashCode());
        result = prime * result + ((getGiveuri() == null) ? 0 : getGiveuri().hashCode());
        result = prime * result + ((getGiveparentid() == null) ? 0 : getGiveparentid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", giveid=").append(giveid);
        sb.append(", roleid=").append(roleid);
        sb.append(", giveuri=").append(giveuri);
        sb.append(", giveparentid=").append(giveparentid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}